import cookie from "js-cookie";
import { storage, tokenName } from "../config/settings";

let userName = "username";

export function getToken() {
  return cookie.get(tokenName);
}

export function setToken(value) {
  return cookie.set(tokenName, value);
}

export function removeToken() {
  return cookie.remove(tokenName);
}

export function getUserName() {
  return cookie.get(userName);
}

export function setUserName(value) {
  return cookie.set(userName, value);
}

export function removeUserName() {
  return cookie.remove(userName);
}
